
Component({
  properties: {
    coupon:{
      type:Object,
      value:null,
    }
  },
  data: {

  },
  lifetimes:{
    attached:function(){
    },
  },
  methods:{
    buyCoupon(e) {
      //console.log(e);
      const id = e.currentTarget.id;
      this.triggerEvent('buy-coupon', {id});
    },

    ffff(e){
      console.log(e);
      console.log("ffff");
    }
  }
});
